//
//  GCW_RankViewCell.m
//  MooMusic
//
//  Created by 管晨雯 on 15/10/21.
//  Copyright © 2015年 wjy. All rights reserved.
//

#import "GCW_RankViewCell.h"
#import "PrefixHeader.pch"
#import <UIImageView+WebCache.h>
@implementation GCW_RankViewCell

 /*初始化变量*/
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        self.photoImage  = [[UIImageView alloc]init];
        [self.contentView addSubview:self.photoImage];
        
        self.typeLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.typeLabel];
        
        self.nameLabel1 = [[UILabel alloc]init];
        self.nameLabel1.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.nameLabel1];
        
        self.nameLabel2 = [[UILabel alloc]init];
        self.nameLabel2.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.nameLabel2];
        
        
        self.nameLabel3 = [[UILabel alloc]init];
        self.nameLabel3.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.nameLabel3];
        
        
        self.rightImage = [[UIImageView alloc]init];
        [self.contentView addSubview:self.rightImage];
        
    }

    return self;
}



- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.photoImage.frame = CGRectMake(10 * WIDTH, 15 * HEIGH, 160 * WIDTH, 175 *  HEIGH);
//    self.photoImage.backgroundColor = [UIColor orangeColor];
    
        
    
    self.typeLabel.frame = CGRectMake(180 * WIDTH, 15 * HEIGH, 160 * WIDTH, 40 * HEIGH);
//    self.typeLabel.backgroundColor = [UIColor cyanColor];
    

    self.nameLabel1.frame = CGRectMake(180 * WIDTH, 85 * HEIGH, 160 * WIDTH, 30 * HEIGH);
//    self.nameLabel1.backgroundColor = [UIColor lightGrayColor];
    

    self.nameLabel2.frame = CGRectMake(180 * WIDTH, 120 * HEIGH, 160 * WIDTH, 30 * HEIGH);
//    self.nameLabel2.backgroundColor = [UIColor redColor];
    
    
    self.nameLabel3.frame = CGRectMake(180 * WIDTH, 160 * HEIGH, 160 * WIDTH, 30 * HEIGH);
//    self.nameLabel3.backgroundColor = [UIColor  brownColor];
    
    
    self.rightImage.frame = CGRectMake(340 * WIDTH, 90 * HEIGH,40 * WIDTH, 40 * HEIGH);
//    self.rightImage.backgroundColor = [UIColor blueColor];
    self.rightImage.image = [UIImage imageNamed:@"jiantou-2@2x.png"];
    
}








- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
